Check if MyResourceGroup exists.
MyResourceGroup
az group # Options here
az group exists -n MyResourceGroup